Macro Reference - Directory

Below is a list of Directory macros.  Note that paths do not contain a trailing backslash.

The full list of macros can be found here.

 

Macro Description
Macros for "All User" data.  Most values are read from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
@AppDataCommonDir path to Application Data
@DesktopCommonDir path to Desktop
@DocumentsCommonDir path to Documents
@FavoritesCommonDir path to Favorites
@ProgramsCommonDir path to Start Menu's Programs folder
@StartMenuCommonDir path to Start Menu folder
@StartupCommonDir path to Startup folder
Macros for Current User data.  Most values are read from HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
@AppDataDir path to current user's Application Data
@DesktopDir path to current user's  Desktop
@MyDocumentsDir path to My Documents target
@FavoritesDir path to current user's Favorites
@ProgramsDir path to current user's Programs (folder on Start Menu)
@StartMenuDir path to current user's Start Menu
@StartupDir current user's Startup folder
@UserProfileDir Path to current user's Profile folder.
Other macros for the computer system:
@HomeDrive Drive letter of drive containing current user's home directory.
@HomePath Directory part of current user's home directory. To get the full path, use in conjunction with @HomeDrive.
@HomeShare Server and share name containing current user's home directory.
@LogonDNSDomain Logon DNS Domain.
@LogonDomain Logon Domain.
@LogonServer Logon server.
@ProgramFilesDir path to Program Files folder
@CommonFilesDir path to Common Files folder
@WindowsDir path to Windows folder
@SystemDir path to Windows' System (or System32) folder
@TempDir path to the temporary files folder
@ComSpec value of %comspec%, the SPECified secondary COMmand interpreter;
primarly for command line uses, e.g.  Run(@ComSpec & " /k help | more")